;
;	VisiCalc Pop-up Menu Configuration
;
Comment		("Configured for VisiCalc")

;
;	Parameters
;
Sensitivity	(13, 8)		; (Xinc, Yinc)
Hysteresis	(1, 1)		; (AutoX, AutoY)
ReverseVideo	(Yes)		; Menu is displayed in reverse video
FixedMenu	(Yes)		; Menu is in a fixed position
MenuCenter	(0, 24)		; (Col, Row) of menu center
EnableBeep	(Yes)		; Beeps if wrong button pressed with menu up

;
;	Cursor Definitions
;
ArrowKeys: Cursor
(
	Left	([Left])
	Right	([Right])
	Up	([Up])
	Down	([Down])
)

;
;	Button Definitions
;
LBM:	Button	(Menu(Main))		; Left button, Main Menu
LBC:	Button	(Menu(Calc))		; Left button, Calc Menu
LBF:	Button	(Menu(File))		; Left button, File Menu
MB:	Button	(Keys([Enter])) 	; Middle button
RB:	Button	(Keys([Backspace]))	; Right button

;
;	Menu Definitions
;
Main: Menu
(
	Title	("Main")
	Item	("Replicate",		Keys("/R"))
	Item	(".",			Keys("."))
	Item	("No Change",		Keys("N"))
	Item	("Relative",		Keys("R"))
	Item	("Calc Menu",           Menu(Calc), Button(LBC))
	Item	("File Menu",		Menu(File), Button(LBF))
	Item	("More Menus",		Menu(More))
	Item	("Edit",		Keys("/E"))
	Item	("Blank",		Keys("/B" [Enter]))
	Item	("Delete",		Menu(Delete))
	Item	("Insert",		Menu(Insert))
	Item	("Change Window",	Keys(";"))
	Item	("Home",		Keys([Home]))
)

Calc: Menu
(
	Title	("Calc")
	Item	("@Sum(",               Keys("@Sum("))
	Item	(".",			Keys("."))
	Item	(")",                   Keys(")"))
	Item	("(",                   Keys("("))
	Item	("+",                   Keys("+"))
	Item	("-",                   Keys("-"))
	Item	("*",                   Keys("*"))
	Item	("/",                   Keys("/"))
	Item	("^",                   Keys("^"))
	Item	("Edit",		Keys("/E"))
	Item	("Recalc",              Keys("!"))
	Item	("Main Menu",           Menu(Main), Button(LBM))
)

File: Menu
(
	Title	("File")
	Item	("Load File",		Keys("/SL"))
	Item	("Save File",		Keys("/SS"))
	Item	("Load DIF File",	Keys("/S#L"))
	Item	("Save DIF File",	Keys("/S#S"))
	Item	("Delete File",		Keys("/SD"))
	Item	("Print to Printer",	Keys("/PP"))
	Item	("Print to File",	Keys("/PF"))
	Item	("Clear",		Keys("/C"))
	Item	("Yes",			Keys("Y"))
	Item	("Quit",		Keys("/SQ"))
	Item	("Main Menu",		Menu(Main), Button(LBM))
)

More: Menu
(
	Title	("More")
	Item	("Move",		Keys("/M"))
	Item	("Repeating Label",	Keys("/-"))
	Item	("Window Menu",		Menu(Window))
	Item	("Title Menu",		Menu(Title))
	Item	("Format Menu",		Menu(Format))
	Item	("Global Menu",		Menu(Global))
)

Window: Menu
(
	Title	("Window")
	Item	("Horizontal",		Keys("/WH"))
	Item	("Vertical",		Keys("/WV"))
	Item	("One Window",		Keys("/W1"))
	Item	("Synchronized",	Keys("/WS"))
	Item	("Unsynchronized",	Keys("/WU"))
)


Title: Menu
(
	Title	("Title")
	Item	("Horizontal",		Keys("/TH"))
	Item	("Vertical",		Keys("/TV"))
	Item	("Both",		Keys("/TB"))
	Item	("No Title",		Keys("/TN"))
)

Format: Menu
(
	Title	("Format")
	Item	("General",		Keys("/FG"))
	Item	("Integer",		Keys("/FI"))
	Item	("Currency",		Keys("/F$"))
	Item	("Left",		Keys("/FL"))
	Item	("Right",		Keys("/FR"))
	Item	("Graph",		Keys("/F*"))
	Item	("Default",		Keys("/FD"))
)

Global: Menu
(
	Title	("Global")
	Item	("Column Width",	Keys("/GC"))
	Item	("Recalc Auto",		Keys("/GRA"))
	Item	("Recalc Manual",	Keys("/GRM"))
	Item	("Recalc Order Columns",Keys("/GOC"))
	Item	("Recalc Order Rows",	Keys("/GOR"))
	Item	("Format General",	Keys("/GFG"))
	Item	("Format Integer",	Keys("/GFI"))
	Item	("Format Currency",	Keys("/GF$"))
	Item	("Format Left",		Keys("/GFL"))
	Item	("Format Right",	Keys("/GFR"))
	Item	("Format Graph",	Keys("/GF*"))
	Item	("Format Default",	Keys("/GFD"))
)

Insert: Menu
(
	Title	("Insert")
	Item	("Row",			Keys("/IR"))
	Item	("Column",		Keys("/IC"))
)

Delete: Menu
(
	Title	("Delete")
	Item	("Row",			Keys("/DR"))
	Item	("Column",		Keys("/DC"))
)


;
;	Mouse Definition
;
Mouse
(
	Left	(LBM)
	Middle	(MB)
	Right	(RB)
	Cursor	(ArrowKeys)
)
